﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;

namespace Oak.Model
{
    public class MsMenuItemInfo : Obsidian.Edm.OModel
    {

        private LongField itemId;
        private LongField parentId;
        private LongField frameId;
        private IntField depth;
        private StringField itemText;
        private BoolField isSystemMenuItem;
        private IntField sortOrder;

        public MsMenuItemInfo()
        {
            base.InitModel("oak", "MsMenuItems", new IModelField[] {
                itemId = new LongField(this, "ItemId", "itemId"),
                parentId = new LongField(this, "ParentId", "parentId"),
                frameId = new LongField(this, "FrameId", "frameId"),
                depth = new IntField(this, "Depth", "depth"),
                itemText = new StringField(this, "ItemText", "text"),
                isSystemMenuItem = new BoolField(this, "IsSystemMenuItem", "isSystemMenuItem"),
                sortOrder = new IntField(this, "SortOrder", "sortOrder")
            });
        }

        public LongField ItemId { get { return itemId; } }
        public LongField ParentId { get { return parentId; } }
        public LongField FrameId { get { return frameId; } }
        public IntField Depth { get { return depth; } }
        public StringField ItemText { get { return itemText; } }
        public BoolField IsSystemMenuItem { get { return isSystemMenuItem; } }
        public IntField SortOrder { get { return sortOrder; } }

    }
}
